#-------------------------------------------------------------------------
# Sample make file for IBM VisualAg C++.  To build:
#
#    nmake /a all
#
# If this sample is moved/copied from the PComm samples directory,
# the "pcomm=" line below will need to be changed to point to the
# PComm "SAMPLES" subdirectory.
#
#-------------------------------------------------------------------------

all:      eclmon.exe
eclmon:   eclmon.exe

#--- Set to root directory of PComm samples (c:\progra~1\person~1\samples)
pcomm  = ..\..\..

#debug = /O- /Ti+
debug = /O+ /Ti-
msgs  = /Word+pro+ret+use+cnd
includes = -I $(pcomm)

iccflags = /c /Gd- /Sm /Re /ss /Q /Gm+ $(msgs) $(debug) $(includes)

#-------------------------------------------------------------------------
# General way to generate a ".obj" from a ".cpp"
#-------------------------------------------------------------------------
.cpp.obj:
  icc $(iccflags) $*.cpp

#-------------------------------------------------------------------------
# Compile and link eclmon.EXE
#-------------------------------------------------------------------------
eclmon.exe:    eclmon.obj eclmon.res
  ilink eclmon.obj eclmon.res \
	user32.lib kernel32.lib gdi32.lib comctl32.lib \
	$(pcomm)\pcseclva.lib \
	/DEBUG /OUT:eclmon.exe   

eclmon.obj:  eclmon.cpp resource.h

eclmon.res:  eclmon.rc resource.h
  irc eclmon.rc
